﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newslist.aspx.cs" Inherits="RicciWebsite.admin.news.newslist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="../../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</head>
<body>
    <form id="aspnetForm" runat="server">
    <table cellspacing="0" cellpadding="5" width="100%" border="0">
        <tr>
            <td class="content_head">
                当前位置：管理中心 &gt; 新闻列表
            </td>
        </tr>
        <tr>
            <td height="2">
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="2" border="0">
        <tbody>
            <tr>
                <td>
                    新闻标题：
                </td>
                <td>
                    <input class="textbox" id="txtTitle" style="width: 150px" maxlength="50" name="sChannel2"
                        runat="server">
                </td>
                <td>
                    发布时间
                </td>
                <td>
                    <input class="textbox" id="txtStart" runat="server" style="width: 70px" name="txtStart"
                        onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'txtEnd\')}'})">
                    至
                    <input class="textbox" id="txtEnd" style="width: 70px" name="txtEnd" runat="server"
                        onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStart\')}'})">
                </td>
                <td>
                    <select id="ddlstate" name="ddlstate" runat="server">
                        <option value="-1" selected>全部状态</option>
                        <option value="0">未发布</option>
                        <option value="1">已发布</option>
                        <option value="2">置顶</option>
                    </select>
                </td>
                <td>
                    <asp:Button ID="btnSearch" runat="server" Text=" 查询 " CssClass="button" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </tbody>
    </table>
    <table id="grid" class="table_list" cellspacing="1" cellpadding="2" rules="all" border="0">
        <thead>
            <tr class="table_list_head">
                <td>
                    新闻标题
                </td>
                <td>
                    发布时间
                </td>
                <td>
                    状态
                </td>
                <td>
                    #
                </td>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="rptnewslist" runat="server">
                <ItemTemplate>
                    <tr class="table_list_tr">
                        <td>
                            <a href='news.aspx?nid=<%# Eval("nid") %>'>
                                <%# Eval("ntitle")%></a>
                        </td>
                        <td>
                            <%# Eval("subtime","{0:yyyy-MM-dd}")%>
                        </td>
                        <td>
                            <%# getStatus(Eval("status"))%>
                        </td>
                        <td>
                            <a href='../../news/newsdetail.aspx?nid=<%# Eval("nid") %>' target="_blank">预览查看</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
    <hxjweb:AspNetPager ID="pager" runat="server" HorizontalAlign="Center" OnPageChanged="pager_PageChanged"
        ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextBeforePageIndexBox="转到第"
        TextAfterPageIndexBox="页" PageSize="20" Width="100%" AlwaysShow="true" Direction="LeftToRight"
        Wrap="true">
    </hxjweb:AspNetPager>
    </form>
</body>
</html>
